<template>
	<view>
		<view class="image-content">
			<image style="background-color: #eeeeee;width: 100vh;" :mode="mode" :src="src" @error="imageError"></image>
		</view>
		
	</view>
</template>

<script>
	
	export default {
		name: 'RegisterFooter',
		data() {
			return {
				src: require('@/static/images/registerFooter.png'),
				mode: 'aspectFit',
				text: '头部图片文字描述'
			}
		},
		methods: {
			imageError: function(e) {
				console.error('image发生error事件，携带值为' + e.detail.errMsg)
			}
		}
	}
</script>


<style scoped>
	.image-content {
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		
	}

	.image-title {
		flex: 1;
		margin: 10px;
		padding: 10px 20px;
		background-color: #007AFF;
		color: #FFFFFF;
		border-radius: 5px;
	}
</style>